﻿<%@ Page Title="Muuda menüüd :: " Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="EditMenu.aspx.cs" Inherits="Kohvik_EditMenu" %>
<%@ Reference Control="~/UserControls/EditMenuItem.ascx" %>
<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="Server">
    <h2>
        Muuda menüüd
    </h2>
    <p>
        <asp:Label ID="lblMenuNimetus" runat="server" Font-Bold="False" 
            Font-Names="Comic Sans MS" Font-Size="Larger"></asp:Label>
    </p>
    <asp:PlaceHolder ID="ph_EditMenu" runat="server">
        <fieldset style="width: auto; font-size: 0.9em;">
            <legend>Muuda menüüd</legend>
            <asp:Panel ID="panelPealkirjad" runat="server">
                <asp:Label ID="lblNimetus" runat="server" Text="Nimetus" Width="27%" />
                <asp:Label ID="lblHind" runat="server" Text="Hind" Width="5%" />
                <asp:Label ID="lblKaup" runat="server" Text="Kaup" Width="8%" />&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblKomm" runat="server" Text="Kommentaar" Width="34%" />
                <asp:Label ID="lblDelete" runat="server" Text="Kustuta" Width="5%" />
                <asp:Label ID="lblSoodustus" runat="server" Text="Soodustus" Width="5%" />
            </asp:Panel>
            <asp:Panel ID="panelEdit" runat="server">
            </asp:Panel>
            <br />
            <br />
            <asp:Button ID="btnMuuda" runat="server" Text="Muuda" OnClick="btnMuuda_Click" CssClass="btn" />&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnKustuta" runat="server" Text="Kustuta valitud toidud" OnClick="btnKustuta_Click" CssClass="btn" />
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="lblCheck" runat="server" Text="" ForeColor="Green" />
            <asp:HiddenField ID="hf_asjadeArv" runat="server" />
        </fieldset>
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="ph_addMenuItem" runat="server">
        <fieldset style="width: auto; font-size: 0.9em;">
            <legend>Lisa uus müügiartikkel</legend>
            <asp:TextBox ID="uusMenuItemNimi" runat="server" Text="Uus müügiartikkel"></asp:TextBox>&nbsp;
            <asp:TextBox ID="uusMenuItemHind" runat="server" Text="0,00" style="text-align:right;" />&nbsp;
            <asp:TextBox ID="uusMenuItemKomm" runat="server" Text="Kommentaar"></asp:TextBox>&nbsp;
            <asp:DropDownList ID="ddl_kaupID" runat="server"></asp:DropDownList>
            &nbsp;&nbsp;
            <asp:Button ID="btnLisa" runat="server" Text="Lisa" OnClick="btnLisa_Click" CssClass="btn" />&nbsp;&nbsp;
            <asp:Label ID="lbl_uusMenuItemHindError" runat="server" Text="" ForeColor="Red" />
            <br />
            <asp:RequiredFieldValidator ID="rfv_uusMenuItem" runat="server" ErrorMessage="Sisesta toidu nimi"
                ControlToValidate="uusMenuItemNimi" ForeColor="Red" ></asp:RequiredFieldValidator>
        </fieldset>
        <div style="float:left">
            <fieldset style="width: auto; font-size: 0.9em;">
               <legend>Lisa olemasolev müügiartikkel</legend>
                   <asp:DropDownList ID="ddl_Myygiartikkel" runat="server" />&nbsp;&nbsp;&nbsp;&nbsp;
                   <asp:Button ID="btnLisaExist" runat="server" Text=" Lisa " OnClick="btnLisaExist_Click" CssClass="btn" />
            </fieldset>
        </div>
        <div style="float:left; margin-left:10px">
            <fieldset style="width: auto; font-size: 0.9em;">
                <legend>Lisa kaup</legend>
                <asp:TextBox ID="tbKaubaNimi" runat="server" Text="Uus kaup" />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnLisaKaup" runat="server" Text=" Lisa " OnClick="btnLisaKaup_Click" CssClass="btn" />
                <asp:RequiredFieldValidator ID="rfv_KaubaNimi" runat="server" ErrorMessage="Sisesta kauba nimetus"
                    ControlToValidate="tbKaubaNimi" ForeColor="Red" />
            </fieldset>
        </div>
    </asp:PlaceHolder>
    <p>

    </p>
</asp:Content>
